#pragma once
#include <iostream>
#include <opencv2/opencv.hpp>
#include <stdio.h>
#include "stdlib.h"
#include <string.h>

#include <sys/types.h>
#include <unistd.h>
#include <sys/time.h>

#ifdef  UNICODE
typedef wchar_t TCHAR;
#else 
typedef char TCHAR;
#endif

#ifndef HWND
#define HWND  void*
#endif

#include "KSJApi.h"

using namespace cv;
using namespace std;
class KSJCamera
{
public:
	KSJCamera(int width, int height, int exposure);
	~KSJCamera();
	bool getSrc(Mat& img);
	int get_width();
	int get_height();
private:
	int nRet;										//�������ֵ
	int nCamCount;									//�������
	int nBitCount;									//ͼ����ȼ���
	int nWidth;										//ͼ���
	int nHeight;									//ͼ���
	unsigned char* pImageBuffer;					//ͼ���ڴ�
};
